<template>
  <div class="d-flex w-100">
    <!-- 文章内容 -->
    <div class="col d-flex flex-column">
      <input type="text" name="" value="" class="article-title" placeholder="请输入标题名称">
      <markdown-editor v-model="content" class="col  p-0"></markdown-editor>
    </div>
    <!-- 发布列表 -->
    <div class="col-3" style="padding-top: 50px;">
      <publish-func @save-or-publish="confirm"></publish-func>
    </div>
  </div>
</template>

<script>
import MarkdownEditor from './MarkdownEditor'
import PublishFunc from './PublishFunc'
export default {
  components: {
    MarkdownEditor,
    PublishFunc
  },
  name: 'markdown-edit',
  title: '文章',
  data () {
    return {
      content: ''
    }
  },
  methods: {
    confirm (type, tags) {

    }
  }
}
</script>

<style lang="scss">
.article-title {
  outline: none;
  border: none;
  padding: 10px 0;
  font-size: 20px;
  color: #666;
  width: 100%;
}
</style>
